The following example sets the color and pen parameters for a chart statistics line.
Private Sub Command1_Click()
' Show all statistic lines for series 2.
MSChart1.chartType = VtChChartType2dLine
With MSChart1.plot.SeriesCollection(2).StatLine
.VtColor.Set 128, 128, 255
.Flag = VtChStatsMinimum Or VtChStatsMaximum _
Or VtChStatsMean Or VtChStatsStddev Or _
VtChStatsRegression
.Style(vtChStatsMinimum) = VtPenStyleDotted
.width = 2
End With
End Sub